package com.hph.user.service;

import com.hph.user.domain.User;
import com.hph.user.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

/**
 * @author {USER}
 * @date {date}
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserRepository userRepository;

    @Override
    public Boolean save(User user) {

        return userRepository.save(user);
    }

    @Override
    public Collection<User> listAll() {

        return userRepository.listAll();
    }
}
